import mongoose from 'mongoose';

const ClassifySchema = new mongoose.Schema(
  {
    name: String, // 分类名称
    des: String, // 分类描述
    priority: Number, // 显示优先级
    create_time: Date // 创建时间
  },
  { versionKey: false }
);

ClassifySchema.index({ name: 1 });

const Classify = mongoose.model('Classify', ClassifySchema);

export { Classify };
